Sharing data between two EXE files

Sometimes you may need to share packed data files between two different executables. For example, you have created a game which has main executable and launcher which uses some of the game graphics.

The following technique allows you to share packed data between two different applications. Let's assume that you have program1.exe and program2.exe.